import { Controller, Inject,  IpcOn, Window, BaseController  } from '../../support'
import { UserService } from './user.service'

@Controller()
export class UserController extends BaseController {
  constructor(
    private userService: UserService
  ) { super() }

  @IpcOn('messag-test')
  public async handleSendMsg(msg: string): Promise<string> {
    return this.userService.reply()
  }
}